package com.lenovo.smartengine.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class BootSelfReceiver extends BroadcastReceiver {
    // 重写onReceive方法
    @Override
    public void onReceive(Context context, Intent intent) {
        // 启动应用，参数为需要自动启动的应用的包名
        Log.i("MainActivity", "BootSelfReceiver");
        Intent selfintent = new Intent("com.lenovo.smartengine.AutoRunService");
        context.startService(selfintent);
    }

}